package com.wing.product.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wing.mybatis.common.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 入库订单详情
 */
@Schema(description="入库订单详情")
@Data
@EqualsAndHashCode(callSuper=true)
@TableName(value = "warehouse_order_detail")
public class WarehouseOrderDetail extends BaseEntity<WarehouseOrderDetail> {
    @TableField(value = "order_id")
    @Schema(description="订单id")
    private Long orderId;

    @TableField(value = "order_code")
    @Schema(description="订单编号")
    private String orderCode;

    @TableField(value = "order_detail_code")
    @Schema(description="订单详情编号")
    private String orderDetailCode;

    @TableField(value = "warehouse_product_id")
    @Schema(description="产品编号（物料）warehouse_product表")
    private Long warehouseProductId;

    @TableField(value = "total_quantity")
    @Schema(description="数量")
    private Double totalQuantity;

    @TableField(value = "gross_weight")
    @Schema(description="重量")
    private Double grossWeight;

    @TableField(value = "net_weight")
    @Schema(description="重量")
    private Double netWeight;

    @TableField(value = "price")
    @Schema(description="价格")
    private Double price;

    @TableField(value = "remaining_quantity")
    @Schema(description="剩余发货数量")
    private Double remainingQuantity;

//    private int id;
}